package cn.edu.xyc.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.edu.xyc.pojo.Resultinfo;
import cn.edu.xyc.service.QueryService;

@Controller
public class Query {

	@Autowired
	private QueryService query;
	@RequestMapping(value="query")
	public String query(Map<String,Object> map,@RequestParam(value="idcard")String idcard,@RequestParam(value="username") String username){
		System.out.println("idcard=======>"+idcard+"---------------username=============>"+username);
		Resultinfo resultinfo = query.queryinfo(idcard, username);
		map.put("info", resultinfo);
		return "good";
	}
}
